<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> 
</head>
<body>
    <div id="app">
        <input v-model="inputMessage" placeholder="请输入一行文字">
        <p>{{ inputMessage }}</p>
        <textarea v-model="textareaMessage" placeholder="请输入多行文字"></textarea>
        <p>{{ textareaMessage }}</p>
    </div>

    <script type="text/javascript">
        const RootComponent = {
            data() {
                return {
                    inputMessage: '你好，这是输入框', 
                    textareaMessage: '你好，这是多行输入框' 
                };
            }
        };

        const vueApp = Vue.createApp(RootComponent);
        const vm = vueApp.mount('#app');
        console.log(vm.$data.inputMessage); 
    </script>
</body>
</html>